<include file="layout/header" />
<style type="text/css">
    .teamNum{
        height:20px;
        line-height:20px;
        color:#fff;
        font-size:16px;
    }
    .teamNum span{
        display: inline-block;
        padding:6px 10px;
        border-radius:5px;
        background:#f89000;
    }
    #dt_basic tbody tr td{
        vertical-align:middle;
    }
    #dt_basic tbody tr td:last-child{
        text-align: center;
    }
    #dt_basic tbody tr td button{
        display: inline-block;
        margin:0 10px;
        width: 70px;
    }
    #dt_basic tbody tr td b{
        display: inline-block;
        margin:0 10px;
        width: 70px;
    }
    a{
        cursor:pointer;
    }
</style>
<div id="content">
    <!-- widget grid -->
    <section id="widget-grid" class="">

        <!-- row -->
        <div class="row">

            <!-- NEW WIDGET START -->
            <article class="col-xs-12 col-sm-12 col-md-12 col-lg-12 sortable-grid ui-sortable">

                <!-- Widget ID (each widget will need unique ID)-->
                <div class="jarviswidget jarviswidget-color-darken jarviswidget-sortable" id="wid-id-0" data-widget-editbutton="false" role="widget">
                    <header role="heading">
                        <div class="jarviswidget-ctrls" role="menu">   </div>
                        <span class="widget-icon"> <i class="fa fa-table"></i> </span>
                        <h2>审核列表</h2>

                        <span class="jarviswidget-loader"><i class="fa fa-refresh fa-spin"></i></span></header>

                    <!-- widget div-->
                    <div role="content">

                        <!-- widget edit box -->
                        <div class="jarviswidget-editbox">
                            <!-- This area used as dropdown edit box -->
                        </div>
                        <!-- end widget edit box -->
                        <!-- widget content -->
                        <div class="widget-body no-padding">
                            <div class="widget-body-toolbar">
                                <form action='{{:url("manage/Order/examine")}}' method="get">
                                    <label class="select col-xs-2">
                                        <select name="type" class=" form-control">
                                            <option value="">订单类型</option>
                                            <option value="2"  <if condition="$type eq 2">selected</if> >产品订单</option>
                                            <option value="3"  <if condition="$type eq 3">selected</if>  >工程订单</option>
                                        </select>
                                    </label>
                                    <div class="input-group col-xs-1">
                                        <div class="input-group-btn">
                                            <button class="btn btn-default btn-primary" type="submit"><i class="fa fa-search"></i> 搜索</button>
                                        </div>&nbsp;&nbsp;
                                        <div class="input-group-btn">
                                            <a href="{{:url('manage/Order/examine')}}"><button type="button" class="btn btn-default">
                                                全部
                                            </button></a>
                                        </div>
                                    </div>
                                </form>
                            </div>
                            <div id="dt_basic_wrapper" class="dataTables_wrapper form-inline" role="grid">
                                <div class="dt-wrapper">
                                    <table id="dt_basic" class="table table-striped table-bordered table-hover dataTable" aria-describedby="dt_basic_info">
                                        <thead>
                                        <tr role="row">
                                            <th>订单号</th>
                                            <th>名称</th>
                                            <th>类型</th>
                                            <th>负责人</th>
                                            <th>下单时间</th>
                                            <th>操作</th>
                                        </tr>
                                        </thead>
                                        <tbody role="alert" aria-live="polite">
                                        <volist name="data" id="vo">
                                            <tr class="odd">
                                                <td>{{$vo.order_no}}</td>
                                                <td>
                                                    <if condition="$vo.type eq 2">
                                                        {{$vo.create_name}}的产品订单
                                                        <elseif condition="$vo.type eq 3"/>
                                                        {{$vo.order_name}}
                                                    </if>

                                                </td>
                                                <td>
                                                    <if condition="$vo.type eq 2">
                                                        产品订单
                                                        <elseif condition="$vo.type eq 3"/>
                                                        工程订单
                                                    </if>
                                                </td>
                                                <td>
                                                    {{$vo.charge_name}}
                                                </td>
                                                <td>
                                                    {{$vo.create_t|date="Y-m-d H:i:s",###}}
                                                </td>
                                                <td>
                                                    <if condition="$vo.type eq 2">
                                                        <a target="_blank" href="{{:url('manage/Order/exinfos',['id'=>$vo.id])}}"><button class="btn btn-default btn-primary btn-xs">详情</button></a>
                                                        <elseif condition="$vo.type eq 3"/>
                                                        <a target="_blank" href="{{:url('manage/Order/exginfos',['id'=>$vo.id])}}"><button class="btn btn-default btn-primary btn-xs">详情</button></a>
                                                    </if>

                                                </td>
                                            </tr>
                                        </volist>

                                        </tbody>
                                    </table>
                                </div>
                                <div class="dt-row dt-bottom-row">
                                    <div class="row">
                                        <div class="col-sm-6"></div>
                                        <div class="col-sm-6 text-right">
                                            <div class="dataTables_paginate paging_bootstrap_full">
                                                <ul class="pagination">
                                                    {{$data->render()}}
                                                </ul>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>

                        </div>
                        <!-- end widget content -->

                    </div>
                    <!-- end widget div -->
                </div>
            </article>
            <!-- WIDGET END -->
        </div>
        <!-- end row -->
    </section>
    <!-- end widget grid -->
</div>
<include file="layout/footer" />
